import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const aged: AppRouteModule = {
  path: '/aged', //router路径
  name: 'Aged', //router name
  component: LAYOUT,
  redirect: '/aged/tcm', //跳转路径
  meta: {
    orderNo: 5, //排序号，数字越靠前菜单考前
    icon: 'material-symbols:real-estate-agent-outline', //icon图标
    title: t('routes.oper.aged.aged'), //标题，从locales/lang/zh-CN中找
  },
  children: [
    {
      path: 'tcm',
      name: 'TCM',
      meta: {
        icon: 'icon-park-outline:check-in',
        title: t('routes.oper.aged.tcm'),
      },
      component: () => import('@/views/peis/check-in/index.vue'),
    },
    {
      path: 'qkwz',
      name: 'QKWZ',
      meta: {
        icon: 'icon-park-outline:check-in',
        title: t('routes.oper.aged.qkwz'),
      },
      component: () => import('@/views/peis/check-in/index.vue'),
    },
    {
      path: 'zlnl',
      name: 'ZLNL',
      meta: {
        icon: 'icon-park-outline:check-in',
        title: t('routes.oper.aged.zlnl'),
      },
      component: () => import('@/views/peis/check-in/index.vue'),
    },
  ],
};

export default aged;
